package com.forest.onlinechat.mapper;

import com.forest.onlinechat.pojo.FriendGroups;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface FriendGroupsMapper {

    @Select("select * from friend_groups where created_user = #{userId}")
    List<FriendGroups> getFriendGroups(@Param("userId") Integer userId);
}
